import { createStore } from 'vuex'
import persiste from 'vuex-persistedstate'
import homeModule from './homeModule'
import loginModule from './loginModule'
import goodsList from './goodsList'
import cartModule from './cartModule'
import menuModule from './menuModule'
import meModule from './meModule'


const store = createStore({
        plugins:[
            persiste({
                storage:window.sessionStorage
            }),
        ],
        modules:{
            homeModule,
            loginModule,
            goodsList,
            cartModule,
            menuModule,
            meModule
            
        }
})

export default store